<script type="text/javascript" src="<?= $this->config->base_url(); ?>assets/js/jquery-1.4.3.min.js"></script>
<script type="text/javascript" src="<?= $this->config->base_url(); ?>assets/js/jquery-ui.js"></script>
<link rel="stylesheet" href="<?= $this->config->base_url(); ?>assets/css/jquery-ui.css" type="text/css" charset="utf-8" />
<?php if(!empty ($already_scan))
{?>
<div class="header">
            
            <h1 class="page-title"> Already Delivered To Customer</h1>
        </div>
        
                <ul class="breadcrumb">
            			</ul>
						
<br>
<br>
<br>
<br>
<br>

<div class="row-fluid">
<?php echo form_open_multipart('/admin/expenses/upload_scan');?>
<div class="span4"></div>
<div class="span4">
<label> Case No.</label>
<input type="text"readonly="readonly" name="hp_no" value="<?php echo $case_no->hp_case;?>"/>
<label> Receipt No.</label>
<input type="text"readonly="readonly" name="case_no" value="<?php echo $case_no->case_no;?>"/>
<input type="hidden" value="<?php echo $case_no->id;?>" name="case_id"/>
<label>Customer Name </label>
<input type="text" readonly="readonly"  value="<?php echo $case_detail->customer_name;?>" />
<label>Customer Mobile No. </label>
<input type="text" readonly="readonly" value="<?php echo $case_detail->mobile;?>"/>
<label>Delivery Date </label>
<input type="text" class="span8 date1"data-date-format="yyyy/mm/dd" name="received_date"  id="received_date" value="<?php echo $already_scan->date;?>" readonly="readonly" />



<?php echo form_close();?>
</div>
<div clas="span4">
</div>
</div>
<?php } else {?>
<div class="header">
            
            <h1 class="page-title"> Delivered To Customer</h1>
        </div>
        
                <ul class="breadcrumb">
            			</ul>
						
<br>
<br>
<br>
<br>
<br>

<div class="row-fluid">
<?php echo form_open_multipart('/admin/expenses/upload_scan');?>
<div class="span4"></div>
<div class="span4">
<label> Case No.</label>
<input type="text"readonly="readonly" name="hp_no" value="<?php echo $case_no->hp_case;?>"/>
<label> Receipt No.</label>
<input type="text"readonly="readonly" name="case_no" value="<?php echo $case_no->case_no;?>"/>
<input type="hidden" value="<?php echo $case_no->id;?>" name="case_id"/>
<label>Customer Name </label>
<input type="text" readonly="readonly"  value="<?php echo $case_detail->customer_name;?>" />
<label>Customer Mobile No. </label>
<input type="text" readonly="readonly" value="<?php echo $case_detail->mobile;?>"/>
<label>Delivery Date </label>
<input type="text" class="span8 date1"data-date-format="yyyy/mm/dd" name="received_date"  id="received_date"  />
<br>
<input type="checkbox" name="scan" id="scan" value="1"/>&nbsp;&nbsp; Upload Scan Copy
<br>
<span id ="upload">
<br>
<input type="file" name="user_file" id="user_file" />
<br>
</span>
<br>
<p align="center"><input class="btn btn-inverse" type="submit" name="scan"id="scan"/>
<?php echo form_close();?>
</div>
<div clas="span4">
</div>
</div>
<?php } ?>
<script>
$(document).ready(function(){
$("#upload").hide(); 
$('#scan').click(function () { $("#upload").toggle(this.checked);});

 });
</script>
<script>
$(document).ready(function(){
	$('.date1').datepicker({ dateFormat: 'yy-mm-dd' });

	
});
</script>
